<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>报名系统</title>
<link rel="stylesheet" href="${request.contextPath}/resources/css/style.css" type="text/css" media="all" />
</head>
<body>
	<jsp:include page="../header.jsp"></jsp:include>
	<script type="text/javascript">
		selectionMenu('#menu_member');

		$(document).ready(function() {
			$('#add').click(function() {
				window.location.href = "${request.contextPath}/personal/add";
			});
		});
	</script>
	<!-- Container -->
	<div id="container">
		<div class="shell">

			<!-- Small Nav -->
			<div class="small-nav">
				<a href="#">人员管理</a> <span>&gt;</span> 人员列表
			</div>
			<!-- End Small Nav -->

			<!-- Main -->
			<div id="main">
				<div class="cl">&nbsp;</div>

				<!-- Content -->
				<div id="content">

					<!-- Box -->
					<div class="box">
						<!-- Box Head -->
						<div class="box-head">
							<h2 class="left">职位列表</h2>
							<div class="right">
								<label>查询名称</label> <input type="text" class="field small-field" />
								<input type="submit" class="button" value="查询" />
								<button id="add" class="button" style="margin-left: 10px">
									新增</a>
							</div>
						</div>
						<!-- End Box Head -->

						<!-- Table -->
						<div class="table">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<th>所属部门</th>
									<th>职位名称</th>
									<th>人员姓名</th>
									<th>登录名</th>
									<th>当前状态</th>
									<th>最后登录时间</th>
									<th width="110" class="ac">操作</th>
								</tr>
								<c:forEach items="${pager.datas}" var="item" varStatus="status">
									<tr class="<c:if test="${status.index % 2 == 0 }">odd</c:if>">
										<td><h3>${item.position.dept.name }</h3></td>
										<td>${item.position.name }</td>
										<td>${item.name }</td>
										<td>${item.loginname }</td>
										<td>${item.state }</td>
										<td>${item.lastlogin }</td>
										<td><a
											href="${request.contextPath }/personal/delete?id=${item.id }"
											class="ico del">删除</a><a
											href="${request.contextPath }/personal/edit?id=${item.id }"
											class="ico edit">编辑</a></td>
									</tr>
								</c:forEach>
							</table>

							<!-- Pagging -->
							<div class="pagging">
								<div class="left">Showing 1-12 of 44</div>
								<div class="right">
									<a href="#">上一页</a> <a href="#">1</a> <a href="#">2</a> <a
										href="#">3</a> <a href="#">4</a> <a href="#">245</a> <span>...</span>
									<a href="#">Next</a> <a href="#">View all</a>
								</div>
							</div>
							<!-- End Pagging -->

						</div>
						<!-- Table -->
					</div>
					<!-- End Box -->
				</div>
				<!-- End Content -->
				<div class="cl">&nbsp;</div>
			</div>
			<!-- Main -->
		</div>
	</div>
	<!-- End Container -->
	<jsp:include page="../footer.jsp"></jsp:include>
</body>
</html>